Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Only adjust view rect if it uses custom FrameBuffer with textures using BackbufferRatio #3336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheTryton
Copy link

In case a framebuffer would be created with textures with custom dimensions instead of using BackbufferRatio the existing code can write incorrect predefined uniforms to the shaders. In a case that the window has 1280x720 resolution (m_resolution = {1280, 720}) and the custom framebuffer being set to textures with 3840x2160 resolution the existing code will adjust the m_view from any value set in the user code to {*, *, 1280, 720} thus putting several invalid predefined uniforms in the shaders.

This fix should only do that for framebuffers that are related to the m_resolution using the BackbufferRatio feature, other ones are ignored and the m_view value is not touched.

@TheTryton TheTryton changed the title Fix: Only adjust view rect if uses custom FrameBuffer with textures using BackbufferRatio Fix: Only adjust view rect if it uses custom FrameBuffer with textures using BackbufferRatio Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant